package doyouknow.group.CnAndZhb.response;

import java.util.Map;

/**
 * Created by star on 2020/10/29.
 */
public class BaseControllerReturn {
    /**
     * 通用原始数据返回
     */


    //扩展参数
    private Map<String,Object> extend;

    private Object data;

    public Map<String, Object> getExtend() {
        return extend;
    }

    public void setExtend(Map<String, Object> extend) {
        this.extend = extend;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static BaseControllerReturn create(Object result, Map<String, Object> extend) {
        BaseControllerReturn type = new BaseControllerReturn();
        type.setExtend(extend);
        type.setData(result);
        return type;
    }
}
